bitkeeper revision 1.526 (3f8f4139NGtfXYTOvQIloULmYg2ktg)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Fri, 17 Oct 2003 01:09:13 +0000 (01:09 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Fri, 17 Oct 2003 01:09:13 +0000 (01:09 +0000)
Add a couple of software performance counters to the page table update routines.

xen/common/memory.c
xen/include/xeno/perfc_defn.h

index 5070b511af370039c8668758bae2af572142ef3c..94fb51d6349dec9acb44acd65d23646aae28f67b 100644 (file)
@@ -809,8 +809,12 @@ int do_process_page_updates(page_update_request_t *ureqs, int count)
     unsigned int cmd;
     unsigned long cr0 = 0;
 
+    perfc_incrc( calls_to_process_page_updates ); 
+    perfc_addc( num_page_updates, count );
+
     for ( i = 0; i < count; i++ )
     {
+
         if ( unlikely(copy_from_user(&req, ureqs, sizeof(req)) != 0) )
         {
             if ( cr0 != 0 ) write_cr0(cr0);
index 0d38959022b6917a901b862999c2febee3dbb117..25f8cdafd9745c314d1eafb97eb3eeb3defd7c66 100644 (file)
@@ -17,3 +17,9 @@ PERFCOUNTER( net_tx_transmitted, "net tx transmitted" )
 
 PERFCOUNTER_CPU( domain_page_tlb_flush, "domain page tlb flushes" )
 PERFCOUNTER_CPU( need_flush_tlb_flush, "PG_need_flush tlb flushes" )
+
+PERFCOUNTER_CPU( calls_to_process_page_updates, "calls_to_process_page_updates" )
+PERFCOUNTER_CPU( num_page_updates, "num_page_updates" )
+
+
+